package com.zzq.my.jetpacks.jectpackapp.ui.act

import android.view.View
import by.kirich1409.viewbindingdelegate.viewBinding
import com.aisier.architecture.base.BaseActivity
import com.zzq.my.jetpacks.jectpackapp.R
import com.zzq.my.jetpacks.jectpackapp.databinding.ActivityFraglazyBinding
import com.zzq.my.jetpacks.util.goActivity

/**
 * 描述：class describe
 * 作者：zhuangzeqin
 * 时间: 2021/12/28-9:53
 * 邮箱：zzq@eeepay.cn
 * 备注:
 */
class FragLazyAct : BaseActivity(R.layout.activity_fraglazy), View.OnClickListener {
    private val binding by viewBinding(ActivityFraglazyBinding::bind)

    /**
     * 初始化数据
     */
    override fun initData() {

    }

    /**
     * 初始化操作
     */
    override fun initView() {

    }

    /**
     * 初始化点击事件操作
     */
    override fun eventOnClick() {
        binding.btn1.setOnClickListener(this)
        binding.btn2.setOnClickListener(this)
        binding.btn3.setOnClickListener(this)
        binding.btn4.setOnClickListener(this)
        binding.btn5.setOnClickListener(this)
        binding.btn6.setOnClickListener(this)
        binding.btn7.setOnClickListener(this)

    }

    override fun onClick(v: View) {
        when (v.id) {
            binding.btn1.id -> {
                goActivity<Activity1>(mContext)
            }
            binding.btn2.id -> {
                goActivity<Activity2>(mContext)
            }
            binding.btn3.id -> {
                goActivity<Activity3>(mContext)
            }
            binding.btn4.id -> {
                goActivity<Activity4>(mContext)
            }
            binding.btn5.id -> {
                goActivity<Activity5>(mContext)
            }
            binding.btn6.id -> {
                goActivity<Activity6>(mContext)
            }
            binding.btn7.id -> {
                goActivity<Activity7>(mContext)
            }
        }
    }
}